<?php
/**
 * Date: 2024.8
 * Author: kahn
 * 手机验证码
 */
use config\Response;
use service\uc\SmsService;

class SmsController extends Controller
{
    /**
     * 手机号注册/登录获取验证码
     */
    function getAction(){
        $mobile = $this->_getParam('mobile','string');

        if(!SmsService::sendCode($mobile, $ret)){
            $this->_response($ret);
        }

        $this->_response(Response::SUCCESS);
    }
}